﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace EcoSystem
{
    /// <summary>
    /// 报表配置接口
    /// </summary>
    public interface IReportConfigAppService : ICrudAppService<
        ReportConfigDto,
        Guid,
        GetReportConfigInput,
        CreateOrUpdateReportConfigDto,
        CreateOrUpdateReportConfigDto>
    {
        /// <summary>
        /// 不分页查询
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ListResultDto<ReportConfigDto>> GetAllAsync(GetReportConfigInput input);

        /// <summary>
        /// 获取用户拥有权限的配置列表
        /// </summary>
        /// <param name="onlyEnabled"></param>
        /// <returns></returns>
        Task<ListResultDto<ReportConfigDto>> GetOwnsListAsync(bool onlyEnabled = true);

        /// <summary>
        /// 按编码获取配置
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<ReportConfigDto> GetForCodeAsync(string code); 

    }
}
